package cn.ven.mapper;

import cn.ven.entity.Hot;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HotMapper {
    public void addHot(Hot hot);//添加热图
    public List<Hot> findAll();//查找所有的热图
    public void delHot(Integer id);//根据id删除热图
    public List<Hot> findByType(@Param("type")Integer type,
                                @Param("num")Integer num);//根据type查找对应热图
}
